﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Base.Schema
{
    public class IdentifiedItem : SchemaItem
    {
        public IdentifiedItem(string name) : this(name, null)
        {
        }

        public IdentifiedItem(string name, Guid64 id)
        {
            Name = name;
            this._id = id;
        }

        private Guid64 _id;
        public virtual Guid64 Id
        {
            get
            {
                if (_id == null) _id = Guid64.Generate();
                return _id;
            }
        }
        public virtual string Name { get; set; }
    }
}
